.Net

[Solved] An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode

[Solved] An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode, someone asked me to explain?

When I was trying to run the application I had faced this problem. I have resolved by setting webconfig. Under <system.webServer> tag set validateIntegratedModeConfiguration="false".

Problem:

HTTP Error500.23 - Internal Server Error

An ASP.NET setting has beendetected that does not apply in Integrated managed pipeline mode.
Mostlikely causes:
·        This application defines configuration in thesystem.web/httpHandlers section.
Thingsyou can try:
·        Migrate the configuration to the system.webServer/handlerssection. You can do so manually or by using AppCmd from the command line. Forexample, from the IIS Express install directory, runappcmd migrate config"Default Web Site/". Using AppCmd to migrate your applicationwill enable it to work in Integrated mode. It will continue to work in Classicmode and on previous versions of IIS.

·        If you are certain that it is OK to ignore this error, it can bedisabled by setting system.webServer/validation@validateIntegratedModeConfigurationto false.

·        Alternatively, switch the application to a Classic modeapplication pool. For example, from the IIS Express install directory, run appcmd set app "Default WebSite/" /applicationPool:"Clr4ClassicAppPool". Only do this ifyou are unable to migrate your application.

Solution:

<system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <handlers>
      <remove name="ChartImageHandler"/>
      <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </handlers>
  </system.webServer>

<system.web>
    <httpHandlers>
      <add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
    </httpHandlers>
</
system.web>

 

Post your comments / questions